package com.xzp.blog.entity.dto.form;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 发布博客表单
 */
public class BlogAddForm {

    /**
     * 文章标题
     */
    @NotEmpty
    private String title;

    /**
     * markdown 内容
     */
    private String mdMaterial;

    /**
     * markdown 转 html 后的内容
     */
    private String htmlMaterial;

    /**
     * 文章内容描述
     */
    private String description;

    /**
     * 原始 tags
     */
    private String rawTags;

    public BlogAddForm() {
    }

    public BlogAddForm(String title, String mdMaterial, String htmlMaterial, String description, String rawTags) {
        this.title = title;
        this.mdMaterial = mdMaterial;
        this.htmlMaterial = htmlMaterial;
        this.description = description;
        this.rawTags = rawTags;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMdMaterial() {
        return mdMaterial;
    }

    public void setMdMaterial(String mdMaterial) {
        this.mdMaterial = mdMaterial;
    }

    public String getHtmlMaterial() {
        return htmlMaterial;
    }

    public void setHtmlMaterial(String htmlMaterial) {
        this.htmlMaterial = htmlMaterial;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRawTags() {
        return rawTags;
    }

    public void setRawTags(String rawTags) {
        this.rawTags = rawTags;
    }
}
